package com.hometeacher.api.repository;

import com.hometeacher.api.model.Orders;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author ZhaoYuan
 * @data 06/05/2020 22:34
 */
public interface OrderRepository extends JpaRepository<Orders,Long> {
     List<Orders> findAllByStuID(Long stuId);
     List<Orders> findAllByTeacherID(Long teacherId);
}
